import request from '@/util/http.js'

const API = `/basic/repository`

export function queryRepoAll(obj){

    return request({
        url: `${API}/queryAll`,
        method: 'get',
        params: obj
    })

}

export function deleteRepository(id){
    return request({
        url: `${API}/${id}`,
        method: 'delete'
    })
}

export function saveRepository(obj) {
    return request({
        url: `${API}/save`,
        method: 'post',
        data: obj
    })
}

export function updateRepository(obj) {
    return request({
        url: `${API}/update`,
        method: 'put',
        data: obj
    })
}